package com.czwj.entities;

import java.util.Date;
import java.util.List;

public class Attendance{
	private Integer id;
	
	private Integer projectitemid;
	
	private Integer projectitemchildid;
	
	private Integer jobberid;
	
	private Date date;
	
	private Integer createrid;
	
	private Date createdate;
	
	private String createip;
	
	private ProjectItem item;
	
	private ProjectItemChild projectitemchild;
	
	private Jobber jobber;
	
	private List<Attachment> attachments;
	
	private List<UserInfo> levelattendance;
	
	private int[] dutyattendance;
	
	public List<UserInfo> getLevelattendance(){
		return levelattendance;
	}

	public void setLevelattendance(List<UserInfo> levelattendance){
		this.levelattendance = levelattendance;
	}

	public int[] getDutyattendance(){
		return dutyattendance;
	}

	public void setDutyattendance(int[] dutyattendance){
		this.dutyattendance = dutyattendance;
	}
	
	/**
	 * 创建一个新的实例 Attendance.
	 *
	 * @param projectitemid
	 * @param projectitemchildid
	 * @param date
	 * @param createrid
	 * @param createdate
	 * @param createip
	 */
	public Attendance(Integer projectitemid,Integer projectitemchildid,Date date,Integer createrid,Date createdate,
			String createip){
		super();
		this.projectitemid = projectitemid;
		this.projectitemchildid = projectitemchildid;
		this.date = date;
		this.createrid = createrid;
		this.createdate = createdate;
		this.createip = createip;
	}

	/**
	 * 创建一个新的实例 Attendance.
	 *
	 */
	public Attendance(){
		super();
		// TODO Auto-generated constructor stub
	}
	
	public ProjectItem getItem(){
		return item;
	}
	
	public void setItem(ProjectItem item){
		this.item = item;
	}
	
	public ProjectItemChild getProjectitemchild(){
		return projectitemchild;
	}
	
	public void setProjectitemchild(ProjectItemChild projectitemchild){
		this.projectitemchild = projectitemchild;
	}
	
	public Jobber getJobber(){
		return jobber;
	}
	
	public void setJobber(Jobber jobber){
		this.jobber = jobber;
	}
	
	public List<Attachment> getAttachments(){
		return attachments;
	}
	
	public void setAttachments(List<Attachment> attachments){
		this.attachments = attachments;
	}
	
	public Integer getId(){
		return id;
	}
	
	public void setId(Integer id){
		this.id = id;
	}
	
	public Integer getProjectitemid(){
		return projectitemid;
	}
	
	public void setProjectitemid(Integer projectitemid){
		this.projectitemid = projectitemid;
	}
	
	public Integer getProjectitemchildid(){
		return projectitemchildid;
	}
	
	public void setProjectitemchildid(Integer projectitemchildid){
		this.projectitemchildid = projectitemchildid;
	}
	
	public Integer getJobberid(){
		return jobberid;
	}
	
	public void setJobberid(Integer jobberid){
		this.jobberid = jobberid;
	}
	
	public Date getDate(){
		return date;
	}
	
	public void setDate(Date date){
		this.date = date;
	}
	
	public Integer getCreaterid(){
		return createrid;
	}
	
	public void setCreaterid(Integer createrid){
		this.createrid = createrid;
	}
	
	public Date getCreatedate(){
		return createdate;
	}
	
	public void setCreatedate(Date createdate){
		this.createdate = createdate;
	}
	
	public String getCreateip(){
		return createip;
	}
	
	public void setCreateip(String createip){
		this.createip = createip == null?null:createip.trim();
	}
}
